<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php $this->load->view('include/html_head')?>
</head>
<body>
<div id="wrapper">
	<?php $this->load->view('include/header')?>
	<?php $this->load->view('include/menu')?>
	<div id="page">
		<div id="content">
		<?php $this->load->view('include/sub_navi')?>
			<div class="post">
				<p class="meta">社团初审</p>
				<div class="entry">
					&nbsp;按状态：
					<?php $search = ($this->uri->segment(5) != "") ? $this->uri->segment(5) : ('1-0')?>
					<?php foreach ($this->common_data->_get_society_status_for_association() as $k => $v):?>
					<a class="verify_search search_status" href="<?php echo BACKEND_ASSOCIATION_VERIFY_PATH . '/' . $k . '-' . $url_array[1]?>" ><?php echo $v?></a>
					<?php endforeach;?><a class='anchor_button' onclick='$("#oneclick_verify_confirm_dialog").dialog("open");'>一键审核</a><br /><br />
					&nbsp;按类别：
					<?php foreach ($this->common_data->_get_society_category_name_by_cid() as $k => $v):?>
					<a class="verify_search search_category" href="<?php echo BACKEND_ASSOCIATION_VERIFY_PATH . '/' . $url_array[0] . '-' . $k?>" ><?php echo $v?></a>
					<?php endforeach;?><br /><br />
					<script>
					<?php $temp = explode('-', $search);?>
					$("a.search_status:eq(<?php echo $temp[0]?>)").addClass("current");
					$("a.search_category:eq(<?php echo $temp[1]?>)").addClass("current");
					</script>
					
					<?php if (!empty($society_by_status_and_category)):?>
					<table class='full'>
					<thead>
						<tr>
							<th>社团名称</th>
							<th style="text-align:center;" >社团分类</th>
							<th style="text-align:center;" >社团状态</th>
							<th style="text-align:center;" >操作</th>
						</tr>
					</thead>
					<tbody>
						<?php foreach ($society_by_status_and_category as $v):?>
						<tr>
							<td><?php echo $v['s_name']?></td>
							<td style="text-align:center; width:70px;" ><?php echo $this->common_data->_get_society_category_name_by_cid($v['s_category']);?></td>
							<td style="text-align:center; width:70px;" ><?php echo $this->common_data->_get_society_status_by_confirm_flag($v['confirm_FLAG']);?></td>
							<td style="text-align:center; width:110px;" ><a id="<?php echo $v['society_id']?>" class="anchor_button detail_dialog_link"  title='查看社团详细信息以完成初审'>详细</a><?php if ($v['signin_log'] != ""):?><a id="<?php echo $v['society_id']?>" class="anchor_button log_dialog_link"  title='查看社团审核日志'>日志</a><?php endif;?></td>
						</tr>
						<?php endforeach;?>
					</tbody>
					</table>
					<div style='overflow: hidden;' id='society_verify_dialog'>
					<ul id='dialog_ul'>
					<fieldset>
					<legend><b>社团基本信息</b></legend>
						<li>社团名称：<span id='s_name' class='span'></span></li>
						<li>社团简称：<span id='abbr' class='span'></span></li>
						
						<li>社团类别：<span id='s_category' class='span'></span>类</li>
						<li>创办年份：<span id='since' class='span'></span>年</li>
				  
						<li>社团人数：<span id='member_num' class='span'></span>人</li>
						<li>社团主页：<span id='web_site' class='span'></span></li>
					</fieldset>
					
					<fieldset>
					<legend><b>社团负责人信息</b></legend>
						<li>姓名:<span id='contact' class="span"></span></li>
						<li>学院专业:<span id='col_pro' class="span" title=''></span></li>
		  
						<li>手机:<span id='contact_phone' class="span"></span></li>
						<li>QQ&nbsp;:<span id='contact_qq' class="span"></span></li>
					</fieldset>
					
					<fieldset>
					<legend><b>社团指导老师信息</b></legend>
						<li>姓名:<span id='t_name' class='span'></span></li>
						<li>生日:<span id='t_birth' class='span'></span></li>
				  
						<li>手机:<span id='t_phone' class='span'></span></li>
						<li>QQ&nbsp;:<span id='t_qq' class='span'></span></li>
					</fieldset>
					<div class='about'>
				    	<span><b>社团简介</b></span>
				  		<span id='about' class='span'></span>
					</div>
					</ul>
					</div>
					
					<div style='overflow-x: hidden;' id='society_verify_log_dialog'>
					</div>
					<div style='overflow-x: hidden;' id='oneclick_verify_confirm_dialog' title='一键审核'>
					<p>确定要将所有已经通过初审/复审的社团设置为终审通过?</p>
					<p>
						<span class='tip'>该过程是不可逆的, 请谨慎使用!</span><br />
						<span class='tip'>该过程可能会耗费一段时间, 请您耐心等待!</span>
					</p>
					
					<style>
					.ui-progressbar-value { background-image: url(/images/pbar-ani.gif); }
					#progressbar {
						height: 20px;
					}
					</style>
					<div id='progressbar'></div>
					</div>
					<?php else :?>
					<span class='tip'>抱歉，没有找到相关的结果！请更改查询选项再试试!</span>
					<?php endif;?>
					<?php echo $this->pagination->create_links(); ?>	
				</div>
			</div>
			<div style="clear: both;">&nbsp;</div>
		</div>
		<!-- end #content -->
		<?php $this->load->view('include/side_bar')?>
		<div style="clear: both;">&nbsp;</div>
	</div>
	<!-- end #page -->
</div>
<?php $this->load->view('include/footer_content')?>
<?php $this->load->view('include/footer')?>
</body>
</html>
